﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PortalManagement.ascx.cs"
    Inherits="Framework.Portal.Layouts.Admin.Components.Portals.PortalManagement" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<table border="0" cellpadding="0" cellspacing="1" class="content" width="100%">
    <tr>
        <td class="postheader" width="40%" align="left" valign="top">
            <asp:UpdatePanel ID="upanelGridPortals" runat="server" UpdateMode="Conditional" RenderMode="Inline">
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnUpdate" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="btnAdd" EventName="Click" />
                </Triggers>
                <ContentTemplate>
                    <table class="content" cellspacing="1" cellpadding="0" width="100%">
                        <tr>
                            <td class="header2" align="left" width="30%">
                                <NS:Label ID="Label1" runat="server" LocalizedPage="TABLECAPTION" LocalizedTag="NAME" />
                            </td>
                            <td class="header2" align="left" width="55%">
                                <NS:Label ID="Label2" runat="server" LocalizedPage="TABLECAPTION" LocalizedTag="DESCRIPTION" />
                            </td>
                            <td class="header2" width="15%" align="left">
                                <NS:Label ID="Label3" runat="server" LocalizedPage="TABLECAPTION" LocalizedTag="ACTION" />
                            </td>
                        </tr>
                        <asp:Repeater ID="dgrPortals" runat="server" OnItemCommand="dgrPortals_ItemCommand"
                            OnItemDataBound="dgrPortals_ItemDataBound">
                            <ItemTemplate>
                                <tr>
                                    <td class="post" align="left">
                                        <asp:LinkButton ID="NameEdit" runat="server" CommandName="editportal" CommandArgument='<%# Eval("PortalID") %>'
                                            Text='<%# Eval("Name") %>' />
                                    </td>
                                    <td class="post" align="left">
                                        <%# Eval("Description")%>
                                    </td>
                                    <td class="post" align="left">
                                        <NS:ImageButton ID="btnEditPortal" runat="server" LocalizedPage="IMAGEACTION" LocalizedTag="EDIT24"
                                            CommandArgument='<%# Eval("PortalID") %>' CommandName="editportal" />
                                        &nbsp;
                                        <NS:ImageButton ID="btnDeletePortal" runat="server" LocalizedPage="IMAGEACTION" LocalizedTag="DELETE24"
                                            CommandArgument='<%# Eval("PortalID") %>' CommandName="deleteportal" />
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                        <tr>
                            <td class="postfooter" colspan="3" height="25">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>
        <td class="postcaption" width="60%" align="left" valign="top">
            <asp:UpdatePanel ID="updatePanelAddPortal" runat="server" UpdateMode="Conditional"
                RenderMode="Inline">
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="dgrPortals" EventName="ItemCommand" />
                </Triggers>
                <ContentTemplate>
                    <div id="TabSystem1" class="content1">
                        <div class="tabs">
                            <div class="tabrow">
                                <asp:LinkButton ID="btnGeneral" runat="server" CssClass="tab tabActive" Text="Cơ bản"
                                    OnClick="ActiveTab" CommandArgument="1"></asp:LinkButton>
                                <asp:LinkButton ID="btnTheme" runat="server" CssClass="tab" Enabled="false" Text="Theme"
                                    OnClick="ActiveTab" CommandArgument="2"></asp:LinkButton>
                                <asp:LinkButton ID="btnMasterPage" runat="server" CssClass="tab" Enabled="false"
                                    Text="MasterPage" OnClick="ActiveTab" CommandArgument="3"></asp:LinkButton>
                            </div>
                            <div class="tabcontent">
                                <asp:Panel ID="panelGeneral" runat="server" Visible="true">
                                    <table width="100%" cellspacing="1" cellpadding="0" border="0" class="content">                                        
                                        <tr>
                                            <td colspan="2" class="header2" height="18">
                                                <asp:Label ID="General_lblUpdateStatus" runat="server" ForeColor="Blue" Font-Bold="True"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label4" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="ID" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                <asp:Label ID="General_lblId" runat="server" Font-Bold="true"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label7" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="PARENTID" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                <asp:DropDownList ID="General_dropPortal" runat="server">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label5" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="NAME" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                <asp:TextBox ID="General_txtName" runat="server" Width="100%"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label6" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="DESCRIPTION" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                <asp:TextBox ID="General_txtDescription" runat="server" TextMode="MultiLine" Rows="3" Width="98%"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label8" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="LANGUAGE" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                <asp:DropDownList ID="General_drgLanguage" runat="server" DataTextField="Language_Name" DataValueField="ID">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label9" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="IMAGE" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                <NS:FilePicker Width="90%" ID="General_FilePicker1" runat="server" FileType="jpg" PopupTitle="Up ảnh" PopupFilter="image"></NS:FilePicker>                                                
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label14" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="PERMISSION" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                <asp:CheckBox ID="General_chkPermision" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label10" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="VISIBLE" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                <asp:CheckBox ID="General_chkVisible" runat="server" Checked="True" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label11" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="ACTIVE" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                <asp:CheckBox ID="General_chkEnable" runat="server" Checked="True" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label12" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="PRIORITY" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                <asp:DropDownList ID="General_drgPriority" runat="server">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>                                        
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label15" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="LAYOUT" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                <asp:DropDownList ID="General_drgLayout" runat="server">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="postfooter" colspan="2" valign="middle" align="center">
                                                <NS:Button LocalizedPage="ACTION" LocalizedTag="UPDATE" Authenticated="UPDATE" ID="btnUpdate"
                                                    runat="server" CssClass="pbutton" OnClick="btnUpdate_Click" Text="Cập nhật" />
                                                &nbsp;
                                                <NS:Button LocalizedPage="ACTION" LocalizedTag="CREATE" Authenticated="CREATE" ID="btnAdd"
                                                    runat="server" CssClass="pbutton" OnClick="btnAdd_Click" Text="Thêm mới" />
                                                &nbsp;
                                                <NS:Button LocalizedPage="ACTION" LocalizedTag="RESET" ID="btnCancel" runat="server"
                                                    CssClass="pbutton" Text="Huỷ" Width="60px" OnClick="btnCancel_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <asp:Panel ID="panelTheme" runat="server" Visible="false">
                                    <table width="100%" cellspacing="1" cellpadding="0" border="0" class="content">                                        
                                        <tr>
                                            <td colspan="2" class="header2" height="18">
                                                <asp:Label ID="Theme_lblUpdateStatus" runat="server" ForeColor="Blue" Font-Bold="True"></asp:Label>
                                            </td>
                                        </tr>                                  
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label13" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="NAME" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                Tiêu đề Theme
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label18" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="DESCRIPTION" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                Mô tả
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label20" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="CONTROL" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                Control
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="postfooter" colspan="2" height="25" valign="middle" align="center">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    <table width="100%" cellspacing="1" cellpadding="0" border="0" class="content">
                                        <tr>
                                            <td class="postheader" width="30%" align="left">
                                                <NS:Label ID="Label17" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="NAME" />
                                            </td>
                                            <td class="post" width="70%" align="left">
                                                Tiêu đề Theme
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <asp:Panel ID="panelMasterPage" runat="server" Visible="false">
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>
    </tr>
</table>
